package com.legendshop.openportal.sdk.model.response.v4;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 优惠券发放
 *
 * @author ljk
 * @date 2025/6/30
 */
@Data
@ApiModel(value = "优惠券批量发放")
public class CouponBatchImportV4Response implements Serializable {

    @ApiModelProperty("店铺ID")
    private Long shopId;

    @ApiModelProperty("批量导入记录ID")
    private Long batchShipmentsId;

    @ApiModelProperty("成功数")
    private Integer successNum;

    @ApiModelProperty("失败数")
    private Integer failNum;

    @ApiModelProperty("发单数")
    private Integer shipmentsNum;

    @ApiModelProperty("发送失败记录列表")
    private List<ImportCouponsError> failedCouponRecordList;

    @Data
    @ApiModel(value = "发放失败优惠券列表")
    @NoArgsConstructor
    @AllArgsConstructor
    public static class ImportCouponsError {

        @ApiModelProperty("手机号")
        private String userMobile;

        @ApiModelProperty("优惠券ID")
        private Long couponId;
    }
}

